//
//  UIImage+Property.m
//  Objective-C
//
//  Created by 陆承东 on 2018/5/8.
//  Copyright © 2018年 S_Line. All rights reserved.
//

#import "UIImage+Property.h"

#import <objc/runtime.h>

@implementation UIImage (Property)

- (void)setName:(NSString *)name {
    objc_setAssociatedObject(self, @"name", name, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)name {
    return objc_getAssociatedObject(self, @"name");
}

@end
